<script lang="ts" setup>
import { reactive } from 'vue'
const formList = reactive<FormList>([
  {
    label: '限制上传格式及大小',
    type: 'upload.video',
    prop: 'video1',
    value: [{ name: '哈哈哈哈😄', url: 'http://vjs.zencdn.net/v/oceans.mp4' }],
    accept: ['video/mp4'],
    fileSize: 100
  }
])
const submitForm = (formData: any) => {
  console.log(formData)
}
</script>
<template>
  <XyAddForm isCard :formList="formList" @submit-form="submitForm" />
</template>
